package com.whj.controller;

import com.whj.domain.entity.Category;
import com.whj.domain.response.ResponseResult;
import com.whj.domain.vo.CategoryVO;
import com.whj.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: wanghaijun
 * @Date: 2023/5/23 - 05 - 23 - 9:09 
 * @Description: com.whj.controller
 */

@RestController
@RequestMapping("/category")
public class CategoryController {

    @Autowired
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    public ResponseResult<CategoryVO> getCategoryList(){
        return categoryService.getCategoryList();
    }
}
